package edu.sctu.renpingan.mysubwaysystem.util;

import edu.sctu.renpingan.mysubwaysystem.appbean.PeopleAppbean;

import java.text.SimpleDateFormat;

/**
 * Created by Administrator on 2015/6/9.
 */
public class Timemange {


    public void timemanege(PeopleAppbean peopleAppbean,SubwayCardDeth subwayCardDeth){

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy/MM/dd HH/mm/ss");
        System.out.println("进站时间："+simpleDateFormat.format(peopleAppbean.getGetintime()));
        long getouttime=(peopleAppbean.getGetintime()+subwayCardDeth.conutStationNumber(peopleAppbean.getStart(),peopleAppbean.getEnd())*2000);

        System.out.println("出站时间："+simpleDateFormat.format(getouttime));
    }
}
